<?php
class Get_region extends CI_Model {

    function __construct(){
        parent::__construct();
    }

    function get($country){
        $this->mongo_db->where('country', $country);
        $query = $this->mongo_db->get('regions');
        return $query;
    }
    function getAll(){
        $query = $this->mongo_db->get('regions');
        return $query;
    }

}
?>
